<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 对象
        var person = {
            // 属性
            name: 'tom',
            age: 18,
            job: 'linux',
            // 方法
            dosomething: function () {
                // console.log(this)
                return this.name + ' can play linux'
            }
        }
        // console.log(person)
        console.log(typeof person)
        // 调用
        console.log(person.name)
        console.log(person.dosomething())
    </script>
</body>

</html>